SmitearWebGL.Core.Render.RenderSystem = Class.extend(
{
	init : function()
	{
		this._registClass( "SmitearWebGL.Core.Render.RenderSystem" );
		
		this.deltaTime = 0;
		
		this._lastFrameTime = 0;
	}
	,
	startTimer : function()
	{
		this._lastFrameTime = new Date().getTime();
	}
	,
	updateTimer : function()
	{
		var time = new Date().getTime();
		this.deltaTime = time - this._lastFrameTime;
		this._lastFrameTime = time;
	}
}
);

SmitearWebGL.Core.Render.RenderSession = Class.extend(
{
	init : function()
	{
		this._registClass( "SmitearWebGL.Core.Render.RenderSession" );
		
		this.clear();
	}
	,
	clear : function()
	{
		this.scane = null;
		this.camera = null;
		this.farClip = 0;
		this.nearClip = 0;
		this.deltaTime = 0;
		this.frames = 0;
		this.numOfFrames = -1;
	}
}
);